<?php

namespace Modules\Mall\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class SliderRequest extends FormRequest
{
    //验证规则
    public function rules()
    {
        return array (
        	'thumb'=>'required',
			'isshow'=>'required'
);
    }

    //错误信息处理
    public function messages()
    {
        return array (
        	'thumb.required'=>'请选择海报图片',
			'isshow.required'=>'请选择是否显示'
);
    }

    //权限验证
    public function authorize()
    {
        return true;
    }
}
